<?php

spl_autoload_register(function ($className) {

	$className = str_replace("\\", "/", $className) . ".php";

	if (is_file($className)) {
		require $className;
	} else {
		echo "{$className}加载失败";
	}


});

?>